package com.yq.design.memento;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName CareTaker
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/31 16:42
 * @Version 1.0
 */
public class CareTaker {
    List<Memonto> lists=new ArrayList<>();

    public void addList(Memonto m){
        lists.add(m);
    }

    public Memonto get(int index){
        return lists.get(index);
    }
}
